<nav id="header" class="navbar navbar-default" role="navigation" data-spy="affix" data-offset-top="90">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#iCMS-menu-box">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="<!--{$site.url}-->"><img src="<!--{$site.urls.ui}-->/img/iCMS.logo-6.0.png" width="180"/></a>
    </div>
  </div>
</nav>

<nav class="collapse" role="navigation" id="iCMS-menu-box">
    <div class="navbar-collapse">
      <div class="menu_head">
        <div id="iCMS-nav-login">
          <a class="navbar-brand mlogo" href="<!--{$site.url}-->"><img src="<!--{$site.urls.ui}-->/img/iCMS.mlogo-6.0.png" width="90"/></a>
          <a class="btn btn-primary btn-sm" href="<!--{iCMS:router url='/api/user/login'}-->"><i class="fa fa-user"></i> 登 录</a>
          <a class="btn btn-success btn-sm" href="<!--{iCMS:router url='/api/user/register'}-->"><i class="fa fa-heart"></i> 注册</a>
        </div>
        <div id="iCMS-nav-profile">
          <a class="btn btn-default btn-sm publish" href="<!--{iCMS:router url='/user/publish'}-->" target="_blank"><i class="fa fa-edit"></i> 发表文章</a>
          <!--{include file="iCMS://user/menu.htm"}-->
        </div>
      </div>
      <div class="clearfix"></div>
      <ul class="nav navbar-nav">
        <li class="divider"></li>
        <li<!--{if $pg=="publish"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/publish'}-->"><i class="fa fa-edit"></i> 发表文章</a></li>
        <li<!--{if $pg=="article"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/article'}-->"><i class="fa fa-dashboard"></i> 我的文章</a></li>
        <li<!--{if $pg=="category"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/category'}-->"><i class="fa fa-list-alt"></i> 我的分类</a></li>
        <li<!--{if $pg=="inbox"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/inbox'}-->"><i class="fa fa-envelope-o"></i> 我的私信</a></li>
        <li<!--{if $pg=="comment"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/comment'}-->"><i class="fa fa-comments"></i> 我的评论</a></li>
        <!-- <li<!--{if $pg=="favorite"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/manage/favorite'}-->"><i class="fa fa-star"></i> 我的收藏</a></li> -->
        <li class="divider"></li>
        <li<!--{if $pg=="base"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/profile/base'}-->"><i class="fa fa-info-circle"></i> 基本信息</a></li>
        <li<!--{if $pg=="avatar"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/profile/avatar'}-->"><i class="fa fa-meh-o"></i> 修改头像</a></li>
        <li<!--{if $pg=="setpassword"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/profile/setpassword'}-->"><i class="fa fa-cog"></i> 修改密码</a></li>
        <li<!--{if $pg=="custom"}--> class="active"<!--{/if}-->><a href="<!--{iCMS:router url='/user/profile/custom'}-->"><i class="fa fa-picture-o"></i> 个人封面</a></li>
      </ul>
    </div>
    <div class="menu_right">
        <span class="circle menu_close"><i class="fa fa-times"></i></span>
    </div>
</nav>
